// JavaScript Document 2009.1104

//notifaication 2009.1104
function StartNotification()
{
	$('#loading').show(1000);
	var ajax =new Ajax();
	ajax.responseType=Ajax.RAW;
	ajax.ondone=function(data)
	{
		$('#work').text(data+'<p>'+document.getElementById('work').getValue()+'</p>');
		$('#work_msg').html(document.getElementById('work').getValue());
		$('#loading').hide(1000);
	}
	ajax.onerror=function(data)
	{$('#work').text('error: '+data)
	}
	
	var queryParams = { "msg" : document.getElementById('msg').getValue() , "index":document.getElementById('index').getValue() };
	ajax.post('http://{{ address }}/notification',queryParams );
}





function DisplayMsg()
{
	try
	{$('#display_msg').html(document.getElementById('msg').getValue());}
	catch(ex){}
}
